import requst from"@/utils/request"
export function listallcategory(){
    return requst({
        url:'/category/all',
        method:'get'
    })
}
export function addcategory(categoryType){
    return requst({
        url:'/category/add',
        method:'post',
        data:categoryType
    })
}
export function updatecategory(categoryType){
    return requst({
        url:'/category/update',
        method:'post',
        data:categoryType
    })
}
export function deletecaetgory(categoryid){
    return requst({
        url:'/category/remove',
        method:'delete',
        params:{
            categoryid:categoryid
        }
    })
}